<!DOCTYPE html>
<html lang="zh-cn" itemscope itemtype="http://schema.org/WebPage">
  <head>
    

  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

  <title>GithubDNS - panda power!</title>
  <meta name="description" content=" GitHub解除访问和下载加速  &emsp;国内疆内无法访问github或者是下载速度慢，大多数都是dns解析的ip被修改了，
或者解析到ip访问延迟高，白话说就是墙了；本次教程原理就是不走dns解析，直
接修改hosts文件走ip。
 确定IP地址  ip地址可能会发生改变
 GitHub主要有以下5个域名地址：  github.global.ssl.fastly.net
 github.com (github访问)
 raw.githubusercontent.com (下载文件地址)
 assets-cdn.github.com (github cdn)
 codeload.github.com (旧github 地址)   可以通过以下两个网站获取  https://www.ipaddress.com/
 http://tool.chinaz.com/dns
   最好IP地址都ping一下测试
hosts文件： windows: C:\Windows\System32\drivers\etc\hosts
linux: /etc/hosts 199.232.5.194 github.global.ssl.fastly.net
192.30.253.112 github.com 151.101.76.133 assets-cdn.github.com
140.82.114.10 codeload.github.com
199.232.4.133 raw.githubusercontent.com 
 测试访问： ">
  <meta name="author" content="casper chen"/><script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "WebSite",
    "name": "panda power!",
    
    "url": "https:\/\/cyboca.ga"
}
</script><script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Organization",
  "name": "",
  "url": "https:\/\/cyboca.ga"
  
  
  
  
}
</script>
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [{
        "@type": "ListItem",
        "position": 1,
        "item": {
          "@id": "https:\/\/cyboca.ga",
          "name": "home"
        }
    },{
        "@type": "ListItem",
        "position": 3,
        "item": {
          "@id": "https:\/\/cyboca.ga\/post\/rfl\/githubdns\/",
          "name": "Github d n s"
        }
    }]
}
</script><script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Article",
  "author": {
    "name" : "rslk"
  },
  "headline": "GithubDNS",
  "description" : " GitHub解除访问和下载加速  \x26emsp;国内疆内无法访问github或者是下载速度慢，大多数都是dns解析的ip被修改了，\n或者解析到ip访问延迟高，白话说就是墙了；本次教程原理就是不走dns解析，直\n接修改hosts文件走ip。\n 确定IP地址  ip地址可能会发生改变\n GitHub主要有以下5个域名地址：  github.global.ssl.fastly.net\n github.com (github访问)\n raw.githubusercontent.com (下载文件地址)\n assets-cdn.github.com (github cdn)\n codeload.github.com (旧github 地址)   可以通过以下两个网站获取  https:\/\/www.ipaddress.com\/\n http:\/\/tool.chinaz.com\/dns\n   最好IP地址都ping一下测试\nhosts文件： windows: C:\\Windows\\System32\\drivers\\etc\\hosts\nlinux: \/etc\/hosts 199.232.5.194 github.global.ssl.fastly.net\n192.30.253.112 github.com 151.101.76.133 assets-cdn.github.com\n140.82.114.10 codeload.github.com\n199.232.4.133 raw.githubusercontent.com \n 测试访问： ",
  "inLanguage" : "zh-cn",
  "wordCount":  38 ,
  "datePublished" : "2019-11-12T01:38:19",
  "dateModified" : "2019-11-12T01:38:19",
  "image" : "https:\/\/cyboca.ga\/img\/avatar-icon.png",
  "keywords" : [ "github, linux, windows" ],
  "mainEntityOfPage" : "https:\/\/cyboca.ga\/post\/rfl\/githubdns\/",
  "publisher" : {
    "@type": "Organization",
    "name" : "https:\/\/cyboca.ga",
    "logo" : {
        "@type" : "ImageObject",
        "url" : "https:\/\/cyboca.ga\/img\/avatar-icon.png",
        "height" :  60 ,
        "width" :  60
    }
  }
}
</script>

<meta property="og:title" content="GithubDNS" />
<meta property="og:description" content=" GitHub解除访问和下载加速  &emsp;国内疆内无法访问github或者是下载速度慢，大多数都是dns解析的ip被修改了，
或者解析到ip访问延迟高，白话说就是墙了；本次教程原理就是不走dns解析，直
接修改hosts文件走ip。
 确定IP地址  ip地址可能会发生改变
 GitHub主要有以下5个域名地址：  github.global.ssl.fastly.net
 github.com (github访问)
 raw.githubusercontent.com (下载文件地址)
 assets-cdn.github.com (github cdn)
 codeload.github.com (旧github 地址)   可以通过以下两个网站获取  https://www.ipaddress.com/
 http://tool.chinaz.com/dns
   最好IP地址都ping一下测试
hosts文件： windows: C:\Windows\System32\drivers\etc\hosts
linux: /etc/hosts 199.232.5.194 github.global.ssl.fastly.net
192.30.253.112 github.com 151.101.76.133 assets-cdn.github.com
140.82.114.10 codeload.github.com
199.232.4.133 raw.githubusercontent.com 
 测试访问： ">
<meta property="og:image" content="https://cyboca.ga/img/avatar-icon.png" />
<meta property="og:url" content="https://cyboca.ga/post/rfl/githubdns/" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="panda power!" />

  <meta name="twitter:title" content="GithubDNS" />
  <meta name="twitter:description" content=" GitHub解除访问和下载加速  &emsp;国内疆内无法访问github或者是下载速度慢，大多数都是dns解析的ip被修改了，
或者解析到ip访问延迟高，白话说就是墙了；本次教程原理就是不走dns解析，直
接修改hosts文件走ip。
 确定IP地址  ip地址可能会发生改变
 GitHub主要有以下5个域名地址：  github.global.ssl.fastly.net …">
  <meta name="twitter:image" content="https://cyboca.ga/img/avatar-icon.png" />
  <meta name="twitter:card" content="summary" />
  <link href='https://cyboca.ga/img/favicon.ico' rel='icon' type='image/x-icon'/>
  <meta name="generator" content="Hugo 0.58.3" />
  <link rel="alternate" href="https://cyboca.ga/index.xml" type="application/rss+xml" title="panda power!"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"><link rel="stylesheet" href="https://cyboca.ga/css/main.css" /><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" />
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" />
  <link rel="stylesheet" href="https://cyboca.ga/css/highlight.min.css" /><link rel="stylesheet" href="https://cyboca.ga/css/codeblock.css" /><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe.min.css" integrity="sha384-h/L2W9KefUClHWaty3SLE5F/qvc4djlyR4qY3NUV5HGQBBW7stbcfff1+I/vmsHh" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/default-skin/default-skin.min.css" integrity="sha384-iD0dNku6PYSIQLyfTOpB06F2KCZJAKLOThS5HRe8b3ibhdEQ6eKsFf/EeFxdOt5R" crossorigin="anonymous">



  </head>
  <body>
    <nav class="navbar navbar-default navbar-fixed-top navbar-custom">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
        <span class="sr-only">切换导航</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="https://cyboca.ga">panda power!</a>
    </div>

    <div class="collapse navbar-collapse" id="main-navbar">
      <ul class="nav navbar-nav navbar-right">
        
          
            <li>
              <a title="文章" href="/categories/">文章</a>
            </li>
          
        
          
            <li>
              <a title="tags" href="/tags/">tags</a>
            </li>
          
        

        

        
      </ul>
    </div>

    
      <div class="avatar-container">
        <div class="avatar-img-border">
          <a title="panda power!" href="https://cyboca.ga">
            <img class="avatar-img" src="https://cyboca.ga/img/avatar-icon.png" alt="panda power!" />
          </a>
        </div>
      </div>
    

  </div>
</nav>




    


<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

<div class="pswp__bg"></div>

<div class="pswp__scroll-wrap">
    
    <div class="pswp__container">
      <div class="pswp__item"></div>
      <div class="pswp__item"></div>
      <div class="pswp__item"></div>
    </div>
    
    <div class="pswp__ui pswp__ui--hidden">
    <div class="pswp__top-bar">
      
      <div class="pswp__counter"></div>
      <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
      <button class="pswp__button pswp__button--share" title="Share"></button>
      <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
      <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
      
      
      <div class="pswp__preloader">
        <div class="pswp__preloader__icn">
          <div class="pswp__preloader__cut">
            <div class="pswp__preloader__donut"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
      <div class="pswp__share-tooltip"></div>
    </div>
    <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
    </button>
    <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
    </button>
    <div class="pswp__caption">
      <div class="pswp__caption__center"></div>
    </div>
    </div>
    </div>
</div>


  
  
  






  

  <header class="header-section ">
    
    <div class="intro-header no-img">
      <div class="container">
        <div class="row">
          <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
            <div class="post-heading">
              
                <h1>GithubDNS</h1>
              
              
              
              
                <span class="post-meta">
  
  
  <i class="fas fa-calendar"></i>&nbsp;发表于 November 12, 2019
  
  
    &nbsp;|&nbsp;<i class="fas fa-clock"></i>&nbsp;1&nbsp;分钟
  
  
    &nbsp;|&nbsp;<i class="fas fa-book"></i>&nbsp;38&nbsp;个字
  
  
    
      &nbsp;|&nbsp;<i class="fas fa-user"></i>&nbsp;rslk
    
  
  
</span>


              
            </div>
          </div>
        </div>
      </div>
    </div>
  </header>


    <div id="gotoTop"><a href="#"></a></div>
    
<div class="container" role="main">
  <div class="row">
    <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
      <article role="main" class="blog-post">
        

<h1 id="github解除访问和下载加速">GitHub解除访问和下载加速</h1>

<blockquote>
<p>&emsp;国内疆内无法访问github或者是下载速度慢，大多数都是dns解析的ip被修改了，<br />
或者解析到ip访问延迟高，白话说就是墙了；本次教程原理就是不走dns解析，直<br />
接修改hosts文件走ip。</p>
</blockquote>

<hr />

<h3 id="确定ip地址">确定IP地址</h3>

<blockquote>
<p>ip地址可能会发生改变</p>
</blockquote>

<h4 id="github主要有以下5个域名地址">GitHub主要有以下5个域名地址：</h4>

<ul>
<li><strong>github.global.ssl.fastly.net</strong><br /></li>
<li><strong>github.com (github访问)</strong><br /></li>
<li><strong>raw.githubusercontent.com (下载文件地址)</strong><br /></li>
<li><strong>assets-cdn.github.com (github cdn)</strong><br /></li>
<li><strong>codeload.github.com (旧github 地址)</strong>
<br /></li>
</ul>

<h4 id="可以通过以下两个网站获取">可以通过以下两个网站获取</h4>

<ul>
<li><strong><a href="https://www.ipaddress.com/">https://www.ipaddress.com/</a></strong><br /></li>
<li><strong><a href="http://tool.chinaz.com/dns">http://tool.chinaz.com/dns</a></strong><br />
<br /></li>
</ul>

<p><img src="/img/rfl/githubDNS/web01.PNG" alt="web01" /><br />
<img src="/img/rfl/githubDNS/web02.PNG" alt="web02" /></p>

<blockquote>
<p>最好IP地址都ping一下测试</p>

<h4 id="hosts文件">hosts文件：</h4>

<p><strong>windows:</strong> C:\Windows\System32\drivers\etc\hosts<br />
<strong>linux:</strong> /etc/hosts
<pre>199.232.5.194 github.global.ssl.fastly.net<br />
192.30.253.112 github.com
151.101.76.133 assets-cdn.github.com<br />
140.82.114.10 codeload.github.com<br />
199.232.4.133 raw.githubusercontent.com </pre></p>
</blockquote>

<h4 id="测试访问">测试访问：</h4>

<p><img src="/img/rfl/githubDNS/web03.PNG" alt="web03" /></p>


        
          <div class="blog-tags">
            
              <a href="https://cyboca.ga/tags/github/">github</a>&nbsp;
            
              <a href="https://cyboca.ga/tags/linux/">linux</a>&nbsp;
            
              <a href="https://cyboca.ga/tags/windows/">windows</a>&nbsp;
            
          </div>
        

        
            <hr/>
            <section id="social-share">
              <div class="list-inline footer-links">
                

<div class="share-box" aria-hidden="true">
    <ul class="share">
      
      <li>
        <a href="//twitter.com/share?url=https%3a%2f%2fcyboca.ga%2fpost%2frfl%2fgithubdns%2f&amp;text=GithubDNS&amp;via=" target="_blank" title="Share on Twitter">
          <i class="fab fa-twitter"></i>
        </a>
      </li>
  
      
      <li>
        <a href="//www.facebook.com/sharer/sharer.php?u=https%3a%2f%2fcyboca.ga%2fpost%2frfl%2fgithubdns%2f" target="_blank" title="Share on Facebook">
          <i class="fab fa-facebook"></i>
        </a>
      </li>
  
      
      <li>
        <a href="//reddit.com/submit?url=https%3a%2f%2fcyboca.ga%2fpost%2frfl%2fgithubdns%2f&amp;title=GithubDNS" target="_blank" title="Share on Reddit">
          <i class="fab fa-reddit"></i>
        </a>
      </li>
  
      
      <li>
        <a href="//www.linkedin.com/shareArticle?url=https%3a%2f%2fcyboca.ga%2fpost%2frfl%2fgithubdns%2f&amp;title=GithubDNS" target="_blank" title="Share on LinkedIn">
          <i class="fab fa-linkedin"></i>
        </a>
      </li>
  
      
      <li>
        <a href="//www.stumbleupon.com/submit?url=https%3a%2f%2fcyboca.ga%2fpost%2frfl%2fgithubdns%2f&amp;title=GithubDNS" target="_blank" title="Share on StumbleUpon">
          <i class="fab fa-stumbleupon"></i>
        </a>
      </li>
  
      
      <li>
        <a href="//www.pinterest.com/pin/create/button/?url=https%3a%2f%2fcyboca.ga%2fpost%2frfl%2fgithubdns%2f&amp;description=GithubDNS" target="_blank" title="Share on Pinterest">
          <i class="fab fa-pinterest"></i>
        </a>
      </li>
    </ul>
  </div>
  

              </div>
            </section>
        

        
          
            
          

          
                  <h4 class="see-also">也可以看看</h4>
                  <ul>
                
                
                    <li><a href="/post/cxn/cpucontextswitch/">CpuContextSwitch</a></li>
                
                    <li><a href="/post/cxn/devicemapper/">DeviceMapper</a></li>
                
                    <li><a href="/post/cxn/thinprovisioningsnapshot/">Thin Provisioning</a></li>
                
                    <li><a href="/post/cyboca/nfs%E5%8F%82%E6%95%B0%E4%BC%98%E5%8C%96/">NFS</a></li>
                
                    <li><a href="/post/syn/dns1/">DNS&amp;BIND(1)</a></li>
                
              </ul>

          
        
      </article>

      
        <ul class="pager blog-pager">
          
            <li class="previous">
              <a href="https://cyboca.ga/post/rfl/markdownpad02/" data-toggle="tooltip" data-placement="top" title="MarkdownPad02">&larr; 前一篇</a>
            </li>
          
          
            <li class="next">
              <a href="https://cyboca.ga/post/cxn/namespace/" data-toggle="tooltip" data-placement="top" title="Namespace">后一篇 &rarr;</a>
            </li>
          
        </ul>
      


      
        
        
      

    </div>
  </div>
</div>

      
<footer>
  <div class="container">
    <div class="row">
      <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
        <ul class="list-inline text-center footer-links">
          
          
          <li>
            <a href="" title="RSS">
              <span class="fa-stack fa-lg">
                <i class="fas fa-circle fa-stack-2x"></i>
                <i class="fas fa-rss fa-stack-1x fa-inverse"></i>
              </span>
            </a>
          </li>
          
        </ul>
        <p class="credits copyright text-muted">
          
            
              <a href="example.com">casper chen</a>
            
          

          &nbsp;&bull;&nbsp;&copy;
          
            2019
          

          
            &nbsp;&bull;&nbsp;
            <a href="https://cyboca.ga">panda power!</a>
          
        </p>
        
        <p class="credits theme-by text-muted">
          由 <a href="https://gohugo.io">Hugo v0.58.3</a> 强力驱动 &nbsp;&bull;&nbsp; 主题 <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a> 移植自 <a href="https://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>
          
        </p>
      </div>
    </div>
  </div>
</footer><script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.js" integrity="sha384-K3vbOmF2BtaVai+Qk37uypf7VrgBubhQreNQe9aGsz9lB63dIFiQVlJbr92dw2Lx" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/contrib/auto-render.min.js" integrity="sha384-kmZOZB5ObwgQnS/DuDg6TScgOiWWBiVt0plIRkZCmE6rDZGrEOQeHM5PcHi+nyqe" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

<script src="https://cyboca.ga/js/main.js"></script>
<script src="https://cyboca.ga/js/highlight.min.js"></script>
<script> hljs.initHighlightingOnLoad(); </script>
<script> $(document).ready(function() {$("pre.chroma").css("padding","0");}); </script><script> renderMathInElement(document.body); </script><script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe.min.js" integrity="sha384-QELNnmcmU8IR9ZAykt67vGr9/rZJdHbiWi64V88fCPaOohUlHCqUD/unNN0BXSqy" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe-ui-default.min.js" integrity="sha384-m67o7SkQ1ALzKZIFh4CiTA8tmadaujiTa9Vu+nqPSwDOqHrDmxLezTdFln8077+q" crossorigin="anonymous"></script><script src="https://cyboca.ga/js/load-photoswipe.js"></script>









    
  </body>
</html>

